<?php
/**
 * Created by PhpStorm.
 * User: g
 * Date: 2018/3/14
 * Time: 13:08
 */

namespace app\index\controller;
use think\Controller;
use think\Session;
use think\Request;
use think\View;
use think\Db;
use think\Validate;
use app\index\validate\Valid;

class Bfqdgj extends Common
{

    /**
     * 我的拜访签到轨迹
     */
    public function mybfqdtrail(){

        $de = db('department t')->join('department_employee t2','t2.department_id=t.id')->where('t2.employee_id',session('employee_id'))->value('de_name');
        $this->assign('de',$de);
        $em_name = db('employee')->where('id',session('employee_id'))->value('em_name');
        $this->assign('em_name',$em_name);

        return $this->fetch();
    }

    /**
     * 下属拜访签到轨迹
     */
    public function tobfqdtrail(){


        return $this->fetch();
    }

    /**
     * 所有拜访签到轨迹
     */
    public function allbfqdtrail(){


        return $this->fetch();
    }


}